#ifndef _CGAMEENGINE_H_
#define _CGAMEENGINE_H_

#include <d3dx9.h>
#include "GameState.h"
#include "ResourceManager.h"
#include "Input.h"

class CGameEngine
{
private:
	HINSTANCE m_hInst;
	HWND m_hWnd;
	CGameState* m_curState;

	CResourceManager* m_RM;
	CInput* m_input;

public:
	CGameState* m_nextState;
	CGameEngine();
	void Init(LPDIRECT3DDEVICE9 pD3DDevice, HINSTANCE hInst, HWND hWnd);
	void Update(float gameTime);
	void Draw(LPD3DXSPRITE spriteHandler);
};

#endif